<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <script src="/html/js/axios.min.js"></script>
    <script src="/html/js/util(1).js"></script>
    <script src="/html/leader/js/add.js"></script>
</head>
<body>

    <div id="indexDiv" style="margin-left: 100px;margin-top: 80px;display: flex">

        <div>
            <span style="font-size: 20px;font-weight: bold">添加商品</span><br><br>
            商品图片: <input type="file" id="img" onchange="fileChange('img','productImg')"><br><br>
            商品名称: <input type="text" id="name"><br><br>
            商品单价: <input type="text" id="price"><br><br>
            商品产地: <input type="text" id="address"><br><br>
            生产日期: <input type="text" id="time"><br><br>
            <input type="button" value="添加" onclick="add()">
        </div>

        <div>
            <img id="productImg" style="height: 250px;width: 200px;">
        </div>
    </div>
</body>
</html>